import request from '@/utils/request'

export default {
    getList(current, limit) {
        return request({
            url: `/lendng-product/list/${current}/${limit}`,
            method: 'get'
        })
    },
    add(invitation) {
        return request({
            url: `/lendng-product`,
            method: 'post',
            data: invitation
        })
    },
    // 6.通过申请
    pass(id) {
        return request({
            url: `/lendng-product/pass/${id}`,
            method: 'post'
        })
    },
    // 7.拒绝申请
    deny(id) {
        return request({
            url: `/lendng-product/deny/${id}`,
            method: 'post'
        })
    },
    show(current, limit) {
        return request({
            url: `/lendng-product/${current}/${limit}`,
            method: 'get'
        })
    },

    getDetail(id) {
        return request({
            url: `/lendng-product/${id}`,
            method: 'get'
        })
    },

    delete(ids) {
        return request({
            url: `/lendng-product`,
            method: 'delete',
            data: ids
        })
    }
}